<%@ page import="java.util.ArrayList" %>
<%@ page import="java.util.HashMap" %><%--
  Created by IntelliJ IDEA.
  User: WangJun
  Date: 2024/11/7
  Time: 11:29
  To change this template use File | Settings | File Templates.
--%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

<%
    HashMap<Object, Object> hm = new HashMap<>();
    hm.put("name", "tom");
    hm.put("age", 22);

    request.setAttribute("map", hm);
%>

<c:forEach items="${map}" var="en">
    ${en.key}...${en.value}<br>
</c:forEach>


</body>
</html>
